package lgs.hm.aop2;

import java.util.Arrays;
import java.util.Date;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan
@EnableAspectJAutoProxy
public class Main {

	public static void main(String[] args) {
		
		ApplicationContext context = new AnnotationConfigApplicationContext(Main.class);
		
		Person bean = context.getBean(Person.class);
		double money = bean.getMoney();
		System.out.println(money);
		
		bean.singSong("沙漠骆驼");
		
		bean.xixi("sh");
		
		bean.hehe(null);
		
		
		Object bean2 = context.getBean("myDate");
		System.out.println(bean2);
		

	}
	

}
